package com.zlzkj.app.mapper;

import com.zlzkj.app.model.Authority;
import com.zlzkj.app.model.Permission;
import com.zlzkj.app.model.Role;

import java.util.List;

public interface PermissionMapper {

    int deleteByRoleId(String roleId);

    int insert(Permission permission);

    List<Authority> selectAuthorityByRoleId(String roleId);

    List<String> selectByRoleId(String roleId);

    List<Role> selectRolesByRoleId(String roleId);
}
